package com.hbzhit.modules.sys.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.*;

@Data
@ApiModel("审批填报列表")
public class ProReportVO implements Serializable {
    private static final long serialVersionUID = 4868098174259074944L;

    private ProInfoVO proInfoVO;

    @ApiModelProperty("填报进度")
    private Map<String, List<Fill>> fillMap = new LinkedHashMap<>();

    public void setFillMap(String classify, List<Fill> memberList) {
        this.fillMap.put(classify, memberList);
    }


    @Data
    public static class Fill implements Serializable {

        private static final long serialVersionUID = 8773705996671366622L;

        @ApiModelProperty("填报id")
        private Long reportId;

        @ApiModelProperty("姓名")
        private String realName;

        @ApiModelProperty("完成任务")
        private String completeTasks;

        @ApiModelProperty("计划任务")
        private String scheduleTasks;

        @ApiModelProperty("时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss:mm")
        private Date reportTime;

        @ApiModelProperty("状态 0:初始，1:提交汇报，2：提交审批，3：审批通过，4：审批驳")
        private Integer bpmStatus;

        @ApiModelProperty("填报人类别")
        private Integer reporterType;

    }


}
